package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.bowart.BowArtJianBaRingInfo;
import com.yanqu.road.entity.activity.bowart.BowArtMingZhongScoreInfo;
import com.yanqu.road.entity.activity.bowart.BowArtUserData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;

public class BowArtBusiness {


    public static BowArtUserData getUserData(long userId, int activityId) {
        return DaoHelper.getBowArtUserDataDaoImpl().getBowArtUserData(activityId, userId);
    }

    public static boolean addBowArtUserData(BowArtUserData userData) {
        return DaoHelper.getBowArtUserDataDaoImpl().add(userData);
    }

    public static boolean updateBowArtUserData(BowArtUserData userData) {
        return DaoHelper.getBowArtUserDataDaoImpl().update(userData);
    }

    public static List<BowArtMingZhongScoreInfo> getBowArtMingZhongScoreInfo(int activityId) {
        return DaoHelper.getBowArtConfigDaoImpl().getBowArtMingZhongScoreInfo(activityId);
    }

    public static List<BowArtJianBaRingInfo> getBowArtJianBaScoreInfo(int activityId) {
        return DaoHelper.getBowArtConfigDaoImpl().getBowArtJianBaScoreInfo(activityId);
    }
}
